package com.dragon.mmochat.model.enumType;

public enum MmochatWeatherType {
	晴天(0), 下雨(1), 下雪(2);

	int value;

	MmochatWeatherType(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public static MmochatWeatherType get(int v) {
		for (MmochatWeatherType type : MmochatWeatherType.values()) {
			if (type.getValue() == v) {
				return type;
			}
		}
		return null;
	}
}
